﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UDFGridReportList.aspx.cs"
    EnableEventValidation="false" Inherits="WMS6.Web.Analytics.UDFGridReportList" %>

<%@ Register Src="../UserControls/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<%@ Register Src="../UserControls/UDFReportCtrl.ascx" TagName="UDFReportCtrl" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>UDFGridReportList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script type="text/javascript">
    
      window.onload = function(){
            initListPage();
        }
        
        function dd(value)
        {
           document.getElementById("hdnReportID").value = value;
          __doPostBack('<%=aaa.ClientID.Replace('_','$')%>',''); 
        }
        //弹出 打印 入库验收单 的窗口
        function popPrintReport()
        {      
            __doPostBack('<%=printA.ClientID.Replace('_','$')%>',''); 
            var ReportID = document.getElementById("hdnReportID").value;
            document.getElementById('Udfiframe').src="../Common/PrintReport.aspx?rtype=UDFREPORT&udfreportid=" + escape(ReportID);  
       return false;
        }     
        
        function Get()
        {
         alert("1");
              
        }  
    </script>

</head>
<body>
    <form id="F15131" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblUDFReportList" runat="server" CssClass="label_header" Text="报表列表"
                            meta:resourcekey="lblUDFReportList"></asp:Label>
                    </td>
                    <%--<td>
                        <asp:Button ID="btnRefresh" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnRefresh%>"
                            OnClick="btnRefresh_Click" />
                    </td>--%>
                    <td>
                        <asp:Button ID="btnPrint" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnEncasePrint%>"
                            OnClick="btnPrint_Click" />
                        <a id="printA" runat="server" onserverclick="btnPrint_Click"></a>
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnExport%>"
                            OnClick="btnExport_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        <div>
                <div id="div_List">
                    <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message"></asp:Label>
                    </div>
                    <div style="margin-top: 0px; margin-top: 10px; width: 99%">
                        <div style="width: 200px; float: left;" id="LeftDiv">
                            <div id="div_query1" style="height: 800px;">
                                <div id="SideLeftMenu1">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td width="200">
                                                <a onserverclick="ReportLoad" id="aaa" runat="server"></a>
                                                <div id="SideLeftMenu" runat="server">
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <div style="float: left; margin-left: 10px!important; margin-left: 0;" id="rightDiv">
                            <div id="div_query" style="height: 800px; overflow: auto">
                                <div>
                                    <uc2:UDFReportCtrl ID="UDFReportCtrl1" runat="server" Row="3" Heigth="50px" />
                                </div>
                                <div style="height:10px;"></div>
                                <asp:UpdatePanel ID="up1" runat="server">
                                    <ContentTemplate>
                                        <div>
                                            <asp:GridView ID="gvResult" runat="server" AutoGenerateColumns="True" AllowSorting="False"
                                                OnRowDataBound="gvResult_RowDataBound">
                                                <FooterStyle CssClass="GridViewFooterStyle" />
                                                <RowStyle CssClass="GridViewRowStyle" />
                                                <HeaderStyle CssClass="GridViewHeaderStyle" />
                                                <Columns>
                                                    <asp:BoundField HeaderText="No">
                                                        <ItemStyle CssClass="GridViewRowWidth_40" />
                                                    </asp:BoundField>
                                                </Columns>
                                            </asp:GridView>
                                            <uc1:Pager ID="PagerFooter" runat="server" OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click"
                                                OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click" />
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                        </div>
                        <div style="clear: both;">
                        </div>
                    </div>
                </div>
    </div>
    <input type="hidden" runat="server" id="hdnFrom" />
    <input type="hidden" runat="server" id="hdnReportID" />
    <input type="hidden" runat="server" id="hdnReportName" />
    <input type="hidden" runat="server" id="hdnStatus" />
    </div>
    </form>
</body>
</html>
